/**
 * This file is a part of qloudgen-sec. 
 * You can redistribute qloudgen-sec and/or modify it under the terms of the Lesser GNU General Public License version 3. 
 * qloudgen-sec is distributed WITHOUT ANY WARRANTY. 
 *
 * See the Lesser GNU General Public License for more details at http://www.gnu.org/licenses/. 
 **/
package org.redisson;

public class Address implements java.io.Serializable {
	
	private String postcode = null;
	
	public Address() {
	}

	public Address(String postcode) {
		this.postcode = postcode;
	}
	
	public void setPostcode(String postcode) {
		this.postcode = postcode;
	}
	
	public String getPostcode() {
		return postcode;
	}
	
	public boolean equals(Object target) {
		if ( target == null ) return false;
		if ( ! ( target instanceof Address ) ) return false;
		if ( postcode == null && ( ( Address )target ).getPostcode() == null ) return true;
		return postcode.equals( ( ( Address )target ).getPostcode() );
	}
}